<?php
/**
 * Model de Datos.
 *
 *
 * @filesource          
 * @copyright		
 * @link		http://www.pragmatia.com Pragmatia
 * @package		datagro
 * @subpackage	app.models
 * @version     1.1
 * @license		http://www.opensource.org/licenses/mit-license.php The MIT License
 * @author      Martin Radosta <mradosta@pragmatia.com>
 */


/**
 * Clase Dato
 *
 * @package	    datagro
 * @subpackage	app.models
 */
class Dato extends AppModel
{ 
	var $name = 'Dato';
	
	var $belongsTo = array('Sim' =>
                        array('className'    => 'Sim',
                              'conditions'   => '',
                              'order'        => '',
                              'dependent'    =>  true,
                              'foreignKey'   => 'sim_id'));
                              	
    var $hasMany = array('DetalleDato' =>
                         array('className'   => 'DetalleDato',
                               'conditions'  => '',
                               'order'       => '',
                               'limit'       => '',
                               'foreignKey'  => 'dato_id',
                               'dependent'   => true,
                               'exclusive'   => false,
                               'finderSql'   => ''));
	
} 
?>